################ setting.py
import os
PROJECT_PATH = os.path.dirname(__file__)
STATIC_ROOT = os.path.join(PROJECT_PATH, 'staticfiles')

TEMPLATE_ROOT = os.path.join(PROJECT_PATH, 'brispon', 'templates')

TEMPLATE_DIRS += (
    TEMPLATE_ROOT,
)

#DATABASES = {
#    'default': {
#        'ENGINE': 'django_mongodb_engine', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
#        'NAME': 'brispon',                      # Or path to database file if using sqlite3.
#        'USER': '',                      # Not used with sqlite3.
#        'PASSWORD': '',                  # Not used with sqlite3.
#        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
#        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
#    }
#}

DATABASES = {
    'default': {
        'ENGINE': 'django_mongodb_engine', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'brispon',                      # Or path to database file if using sqlite3.
        'USER': '',                      # Not used with sqlite3.
        'PASSWORD': '',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
    },
    'mysql': {
        'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': 'brispon',                      # Or path to database file if using sqlite3.
        'USER': 'root',                      # Not used with sqlite3.
        'PASSWORD': 'angry2000',                  # Not used with sqlite3.
        'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
        'PORT': '3389',                      # Set to empty string for default. Not used with sqlite3.
    },
             
    
}
DATABASE_OPTIONS = {'charset': 'utf8'}

MIDDLEWARE_CLASSES += (
    'brisponapp.brispon.middleware.RequestMiddleware',
)

INSTALLED_APPS += (
    'django.contrib.admin',
    'django.contrib.humanize',
    'django_mongodb_engine',
    'brispon',
)

TEMPLATE_CONTEXT_PROCESSORS = (
    "django.contrib.auth.context_processors.auth",                  
    "django.core.context_processors.debug",
    "django.core.context_processors.i18n",
    "django.core.context_processors.media",
    "django.core.context_processors.static",
    "django.contrib.messages.context_processors.messages",
    "brispon.processors.get_contexts",
)

TIME_ZONE = 'Australia/Brisbane'
SITE_ID = '4f093d8eb73348187800001d'
DEFAULT_COUPON = 50

## account 
INSTALLED_APPS += (
    'registration',
)
ACCOUNT_ACTIVATION_DAYS = 3

# south 
#INSTALLED_APPS += (
#    'south',
#)